package com.wangzefeng.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wangzefeng
 * @since 2021-03-18
 */
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 账号名
     */
    private String username;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 用户昵称
     */
    private String nickName;

    /**
     * 用户姓名
     */
    private String fullName;

    /**
     * 个性签名
     */
    private String userBio;

    /**
     * 用户性别
     */
    private Integer userGender;

    /**
     * 用户等级
     */
    private Integer userLevel;

    /**
     * 用户积分
     */
    private Integer userPoints;

    /**
     * 用户的角色
     */
    private String userRole;

    /**
     * 用户邮箱
     */
    private String userEmail;

    /**
     * 用户生日
     */
    private Date userBirthday;

    /**
     * 用户地址
     */
    private String userAddress;

    /**
     * 用户所在地
     */
    private String userLocation;

    /**
     * 用户头像
     */
    private Integer userPhoto;

    /**
     * 用户状态:1为可用，2为不可用
     */
    private Integer userStatus;

    /**
     * 默认角色
     */
    private Integer defaultRoleId;

    /**
     * 默认角色名称
     */
    private String defaultRoleName;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 最后一次修改时间
     */
    private Date updateTime;


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getUserBio() {
        return userBio;
    }

    public void setUserBio(String userBio) {
        this.userBio = userBio;
    }

    public Integer getUserGender() {
        return userGender;
    }

    public void setUserGender(Integer userGender) {
        this.userGender = userGender;
    }

    public Integer getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(Integer userLevel) {
        this.userLevel = userLevel;
    }

    public Integer getUserPoints() {
        return userPoints;
    }

    public void setUserPoints(Integer userPoints) {
        this.userPoints = userPoints;
    }

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public Date getUserBirthday() {
        return userBirthday;
    }

    public void setUserBirthday(Date userBirthday) {
        this.userBirthday = userBirthday;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getUserLocation() {
        return userLocation;
    }

    public void setUserLocation(String userLocation) {
        this.userLocation = userLocation;
    }

    public Integer getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(Integer userPhoto) {
        this.userPhoto = userPhoto;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public Integer getDefaultRoleId() {
        return defaultRoleId;
    }

    public void setDefaultRoleId(Integer defaultRoleId) {
        this.defaultRoleId = defaultRoleId;
    }

    public String getDefaultRoleName() {
        return defaultRoleName;
    }

    public void setDefaultRoleName(String defaultRoleName) {
        this.defaultRoleName = defaultRoleName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SysUser{" +
        "userId=" + userId +
        ", username=" + username +
        ", password=" + password +
        ", nickName=" + nickName +
        ", fullName=" + fullName +
        ", userBio=" + userBio +
        ", userGender=" + userGender +
        ", userLevel=" + userLevel +
        ", userPoints=" + userPoints +
        ", userRole=" + userRole +
        ", userEmail=" + userEmail +
        ", userBirthday=" + userBirthday +
        ", userAddress=" + userAddress +
        ", userLocation=" + userLocation +
        ", userPhoto=" + userPhoto +
        ", userStatus=" + userStatus +
        ", defaultRoleId=" + defaultRoleId +
        ", defaultRoleName=" + defaultRoleName +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
